Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

C Socket Programming for Linux with a Server and Client Example Code

License

NotificationsYou must be signed in to change notification settings

smallbomb/-Linux-C-sample-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

C Socket Programming for Linux with a Server and Client Example Code

1.Use setsockopt() to solve timeout problem.

2.Use signal() and waitpid() to solve zombie process beacuse of using fork().

Server:

Calculates the number to the power of two by the client sent

Client:

Send a number to server and receive a result from server

Command line

First step

~$ make clean ; make

Second step

~$ ./serversocket

From other terminal

~$ ./clientsocket'num'

NOTE:

The'num' have to decimal.

About

C Socket Programming for Linux with a Server and Client Example Code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp