Custom protocol implementation in Gatling


I am building a protocol stack (application layer) which I want to load test using Gatling script. Gatling script will be acting as a server and my application will be a client. Both the client and server will communicate over my protocol.

Can someone provide some pointer on how to read the byte streams in Gatling script so that I can implement my protocol to respond?