Ignore:
Timestamp:
Nov 29, 2009, 9:20:43 AM (12 years ago)
Author:
rossy
Message:

fixed testclient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/Flatline/src/Flatline.h

    r460 r483  
    4141typedef struct sockaddr sockaddr;
    4242typedef struct sockaddr_in sockaddr_in;
     43typedef sockaddr_storage sockaddr_in6;
    4344
    4445bool NetUDPServer_Listen(uint16_t port, bool (*packet_callback)(char* data, int datalen, int from));
    45 bool NetUDPServer_Send(sockaddr* address, char* data, int datalen)
     46bool NetUDPServer_Send(sockaddr* address, char* data, int datalen);
    4647
    4748int NetUDPSocket_Create(uint16_t port);
    48 bool NetUDPSocket_Send(int socket, int ip, uint16_t port, char* data, int datalen);
     49bool NetUDPSocket_Send(int socket, const sockaddr* address, const char* data, int datalen);
    4950void NetUDPSocket_Close(int sock);
    5051
     
    6667
    6768
    68 bool FLrListen_PacketCallback(char* data, int datalen, int from);
    69 bool FLrListen_Run();
     69bool FLrServer_PacketCallback(char* data, int datalen, int from);
     70bool FLrServer_Run();
Note: See TracChangeset for help on using the changeset viewer.