Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fumiama/winsockecho

A simple socket ping-pong echo.
https://github.com/fumiama/winsockecho

Last synced: 2 months ago
JSON representation

A simple socket ping-pong echo.

Awesome Lists containing this project

README

        

# WinsockEcho
A simple socket ping-pong echo.

![image](https://user-images.githubusercontent.com/41315874/190897249-445ff4f3-58c0-4583-8c04-eba6fd65d010.png)

## [C-Binding](https://github.com/wa-kakalala/WSEchoDLL) API
> Minus return value represents an error
```c
int Init();
int Bind(const char* ip, unsigned short* port); // return socket fd
int Close();
int Receive(void (*f) (const char* msg));
int StopReceive();
int Ping(const char* ip, unsigned short port);
void Defer();
```