Skip to content

Adding Half Duplex & Full Duplex TCP Client Server Code #852

@NVombat

Description

@NVombat

Detailed description

A TCP Client and Server which can communicate bidirectionally but only one at a time to simulate Half Duplex Communication, and TCP Client and Server which can communicate bidirectionally simultaneously using the fork() system call which allows the client and server to receive and send messages at the same time simulating Full Duplex Communication.

Context

It helps explain the creating of a client and server to simulate half and full duplex communication systems.

Possible implementation

Full Duplex

Create Socket
Set Address
Bind to port
Listen for clients
Accept client
Fork & communicate
(Same for client)

Half Duplex

Create Socket
Set Address
Bind to port
Listen for clients
Accept client
Allow only one side to communicate at a time

Additional information

I have already implemented this code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions