Skip to content

Instantly share code, notes, and snippets.

View hmasum52's full-sized avatar
🎯
Focusing

Hasan Masum hmasum52

🎯
Focusing
View GitHub Profile
@hmasum52
hmasum52 / gsm_test.ino
Created August 28, 2022 19:43
Sim 900a GSM module test code
#include <SoftwareSerial.h>
#define RXgsm 10
#define TXgsm 11
const uint32_t GSMBaud = 115200;
SoftwareSerial gsmSerial(RXgsm, TXgsm);
void sendMessage(String msg)
{

In ns-2, the reserved field in the TCP header can be accessed and modified using the C++ programming language. Here is an example of how you might use the reserved field in a simulation:

Include the necessary headers in your simulation script:

#include "tcp.h"
#include "ip.h"
Create a new class that inherits from the existing TCP class:
Copy code
class MyTCP : public TCP {
public: