Adding a new function to MT4 - sending alerts by UDP instead of email

MQL4 Scripts Integration

Specification

I need to have a function in MT4 to send alerts out by UDP packet instead of email.

Actual

 

new 

 

Sending text in Java. Text should be the same as the content of the email.

// String host = "192.168.1.2"; int port = 4711;

public void send(String text, String host, int port) {

try {

// Get the internet address of the specified host

InetAddress address = InetAddress.getByName(host);

byte[] message = text.getBytes();

// Initialize a datagram packet with data and address

DatagramPacket packet = new DatagramPacket(message, message.length, address, port);

// Create a datagram socket, send the packet through it, close it.

DatagramSocket dsocket = new DatagramSocket();

dsocket.send(packet);

dsocket.close();

} catch (Exception e) {

System.err.println(e);

}

 

 

Thank you! 

Responded

1
Developer 1
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(24)
Projects
55
40%
Arbitration
1
0% / 0%
Overdue
11
20%
Free
Similar orders
hi uhm im look for someone who can make me an indicator , which is able to show the entry and exit point and also to show stop lose and take profit . nass 100 , us30 an Ger40 and all currencies the time frame it should use 15 min and it should be scalping . the name of the indicator should be called Pro Da Trader please who ever can do that please contact ne via whats app 0715240554 or my email
Objective: Our objective is to develop a platform that simplifies the analysis and presentation of trading ideas sourced from various channels. This platform will act as a centralized hub for traders to efficiently access and evaluate trading signals. Current Situation: We are actively engaged with multiple trading signal channels, VIP groups on Telegram, and applications. However, we face challenges due to private

Project information

Budget
10 - 30 USD
VAT (19%): 1.9 - 5.7 USD
Total: 11.9 - 35.7 USD
For the developer
9 - 27 USD