Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/fumiama/winsockecho
- Owner: fumiama
- Created: 2022-09-16T04:29:12.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T08:57:19.000Z (about 2 years ago)
- Last Synced: 2023-03-04T05:33:13.718Z (almost 2 years ago)
- Language: C#
- Size: 529 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```