[Solved] How to send a fake udp package in golang

At the end I managed to make works this check to send in periods of 10 minuts an upd package with an mac address I know is gonna never be reached as following. func (h *DHCPHandler) check() { //Fetch parameters from config file config := getConfig() // here is a mac saved on a json … Read more

[Solved] differences of n in TCP and UDP?

Both read and write return the number of bytes read/written, or -1 on error. Note, that to be able to invoke read/write on a UDP socket (or, more generally, on a datagram socket) you have to invoke connect on it beforehand to specify the peer address. 1 solved differences of n in TCP and UDP?

[Solved] c++ socket programming : sendto() and recvfrom() error code 10038 & in ‘server’ bind failed with 10038

Error 10038 is WSAENOTSOCK: The descriptor is not a socket. You are calling socket() and assigning your SOCKET handles inside of if statements, but you are missing adequate parenthesis. They should be like this instead: if( (receivingSocket = socket(AF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET ) if( (sendingSocket = socket(AF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET ) Personally, I … Read more

[Solved] How to build a TCP server with erlang?

Check this thing out : TCP Server But I would recommend you to start with gen_tcp and gen_udp modules first before getting started with OTP framework to design your server/Client. Happy Erlang Coding 🙂 solved How to build a TCP server with erlang?